(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["preloadChunk-GamesCardsSlider"],{"1b64":function(e,t,i){},"201f":function(e,t,i){"use strict";t["a"]={data(){return{swiper:null}},computed:{isSliderEnd(){var e;return null===(e=this.swiper)||void 0===e?void 0:e.isEnd},isSliderBeginning(){var e;return null===(e=this.swiper)||void 0===e?void 0:e.isBeginning},sliderFadeClasses(){return{"translate-slider":!this.isSliderBeginning,"translate-slider-end":this.isSliderEnd}}},methods:{saveSwiper(e){this.swiper=e}}}},2491:function(e,t,i){},3332:function(e,t,i){"use strict";var s=function(){var e=this,t=e._self._c;return e.isShowCollectionList?t("div",{directives:[{name:"intersection",rawName:"v-intersection",value:{handler:e.customIntersectionHandler,useCustomCallback:!0,options:{threshold:.1}},expression:"{\n handler: customIntersectionHandler,\n useCustomCallback: true,\n options: { threshold: 0.1 }\n }"}],key:`${e.sliderId}-${e.slidesColumn}-${e.isMobileOrTablet}`,staticClass:"games-slider-wrap",class:e.gamesSliderWrapClasses},[e.isVisible?[e.isHeadVisible?t("div",{staticClass:"games-slider__head",class:{"games-slider__head--disabled":!e.isShowAllBtnVisible},on:{click:e.openGamesSection}},[t("div",{staticClass:"games-slider__title"},[e._v(" "+e._s(e.preparedTitle)+" ")]),e.isShowAllBtnVisible?t("btn",{staticClass:"games-slider__button-all",attrs:{type:"button",s:"",circle:"",secondary:"",icon:"chevrone-right"},on:{click:e.openGamesSection}}):e._e()],1):e._e(),t("div",{staticClass:"games-slider__inner"},[t("div",{staticClass:"games-slider__inner-wr"},[e.isSwiperVisible?t("swiper",e._g({ref:e.sliderId,staticClass:"games-slider",class:e.gamesSliderClasses,attrs:{options:e.sliderOptions}},e.swiperListeners),[e._t("default")],2):t("div",{staticClass:"games-slider",class:e.isMultiRows},[e._t("default"),e.isSafari?t("div",{staticClass:"games-slider__safari-padding"}):e._e()],2),e.$slots.bottom?t("div",{staticClass:"games-slider__inner-bottom"},[e._t("bottom")],2):e._e()],1),e.isMobileOrTablet?e._e():[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.rightNavigateHide&&e.moreThanFiveCollections,expression:"!rightNavigateHide && moreThanFiveCollections"}],staticClass:"games-slider__navigation"},e._l(e.SWIPER_BUTTONS,(function(i,s){return t("cards-slider-navigate",{key:s,attrs:{"navigate-id":e.navigateId,button:i}})})),1)]],2)]:t("skeleton",e._b({staticClass:"skeleton"},"skeleton",e.skeletonProps,!1))],2):e._e()},a=[],r=i("1da1"),n=i("5530"),l=(i("4de4"),i("caad"),i("14d9"),i("ac1f"),i("2532"),i("5319"),i("ca47")),o={data(){return{swiper:null}},mounted(){this.$bus.on("slider-init",this.onSliderInit),this.$bus.on("slider-render",this.onSliderRender)},methods:{onSliderRender(e){this.navigateId===e&&(this.isVisible=!0,this.$bus.emit("slider-rendered",this.navigateId),this.$bus.off("slider-render",this.onSliderRender))},onSliderInit(e){this.navigateId===e&&this.swiper&&(setTimeout(()=>{this.swiper.init(),this.$bus.emit("slider-initialized",this.navigateId)}),this.$bus.off("slider-init",this.onSliderInit))},intersectionHandler(e){var t;null!==e&&void 0!==e&&null!==(t=e[e.length-1])&&void 0!==t&&t.isIntersecting&&!this.isIntersecting&&(this.isIntersecting=!0,this.$bus.emit("slider-visible",this.navigateId))},saveSwiper(e){this.swiper=e}}},d=i("201f"),c=i("10ba"),m=i("0594"),u=i("629d"),h=i("5005"),p=i("48b3"),g=i("a026"),v=i("8f12"),b={name:"cards-slider",components:{Btn:m["default"],CardsSliderNavigate:u["a"],Skeleton:Object(g["defineAsyncComponent"])(()=>i.e("Skeleton").then(i.bind(null,"647a")))},mixins:[o,d["a"],h["a"]],props:{title:{type:String,default:""},row:{type:Number,default:2},collection:{type:String,default:""},name:{type:String,default:""},filter:{type:String,default:""},collectionList:{type:Array,default:()=>[]},rightNavigateHide:{type:Boolean,default:!1},isShowAllBtnVisible:{type:Boolean,default:!1},navigateId:{type:String,default:"name"},rtpOptions:{type:Object,required:!1,default:()=>{}},skeletonProps:{type:Object,default:()=>({type:"games-list-card",useShadow:!0})},gtmElement:{type:Object,default:()=>({})},cardSize:{type:String,validator(e){return["xs","s","m","l"].includes(e)},default:""},sectionUrl:{type:String,default:""},isHeadVisible:{type:Boolean,default:!0},isProvidersHead:{type:Boolean,default:!1},isSwiperMobileVisible:{type:Boolean,default:!1}},data(){return{isVisible:!this.isLazyLoadingEnabled,isSafari:c["a"].isSafari}},computed:Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])({},Object(l["e"])("player",["isPlayerAuthorized","getLanguageForUrl"])),Object(l["e"])("breakpoints",["isMobile","isMobileOrTablet","isDesktop","isTabletOrLaptop"])),Object(l["e"])("lazyLoading",["isLazyLoadingEnabled"])),{},{isSwiperVisible(){return this.isSwiperMobileVisible||!this.isMobile},isMultiRows(){return this.slidesColumn>p["g"]?"swiper-container-multirow":""},cardSizeClass(){return this.cardSize?"games-slider-wrap--size-"+this.cardSize:""},slidesPerGroupValue(){return this.isTabletOrLaptop?this.isProvidersListSection?p["k"]:p["l"]:this.isDesktop?p["i"]:p["j"]},isShowCollectionList(){var e;return null===(e=this.collectionList)||void 0===e?void 0:e.length},isTwoRow(){return this.row===p["q"]},isThreeRow(){return this.row===p["o"]},isGamesPopular(){return this.navigateId===v["oc"].POPULAR},isGamesRecommended(){return this.name===v["Sc"].HOME_RECOMMENDED},spaceBetweenInSlider(){const e=this.navigateId===p["p"]||this.navigateId===p["b"],t=[v["oc"].NEW,v["oc"].LIVE_DEALERS];return this.isGamesPopular||this.isGamesRecommended?this.isDesktop?p["n"]:p["e"]:t.includes(this.navigateId)?0:this.isProvidersListSection&&this.isThreeRow?this.isMobileOrTablet?p["f"]:p["a"]:e&&this.isTwoRow?p["n"]:0},sliderOptions(){return{init:!1,slidesPerView:"auto",speed:400,threshold:20,navigation:{nextEl:`.swiper-${this.navigateId}-next`,prevEl:`.swiper-${this.navigateId}-prev`},grid:{rows:this.slidesColumn},slidesPerGroup:this.slidesPerGroupValue,spaceBetween:this.spaceBetweenInSlider}},slidesColumn(){var e;return this.row===p["g"]?p["g"]:(null===(e=this.collectionList)||void 0===e?void 0:e.length)>p["c"]?this.row:p["g"]},moreThanFiveCollections(){var e;return(null===(e=this.collectionList)||void 0===e?void 0:e.length)>p["d"]},sliderId(){return"gamesSlider-"+this.navigateId},preparedTitle(){return this.$t(this.title).replace("
","")},swiperListeners(){return{swiper:this.saveSwiper}},gamesSliderWrapClasses(){return[this.cardSizeClass,Object(n["a"])({"games-slider-wrap--two-row":this.isTwoRow,"games-slider-wrap--three-row":this.isThreeRow},this.sliderFadeClasses)]},gamesSliderClasses(){return{"games-slider--rtp":this.rtpOptions,"games-slider--two-row":this.isTwoRow,"games-slider--three-row":this.isThreeRow}},isProvidersListSection(){return this.navigateId===p["h"]}}),watch:{slidesColumn(e,t){var i=this;return Object(r["a"])((function*(){e!==t&&i.swiper&&(yield i.$nextTick(),i.swiper.update())}))()},isMobile(){var e=this;return Object(r["a"])((function*(){e.swiper&&(yield e.$nextTick(),e.swiper.update())}))()}},created(){this.SWIPER_BUTTONS=p["m"]},methods:Object(n["a"])(Object(n["a"])({},Object(l["d"])("modal",["openModal"])),{},{openGamesSection(){if(this.isShowAllBtnVisible)if(this.isProvidersHead)this.$bus.emit("open-providers-bottom-sheet");else{var e,t,i,s;if(this.filter&&this.collection||this.gtmElement.showMore)this.$analytics.clickEvent({button:null!==(e=this.gtmElement)&&void 0!==e&&e.showMore?this.gtmElement.showMore:null===(t=this.GTM_ELEMENTS.filter.filtersCategories)||void 0===t||null===(i=t[this.collection])||void 0===i||null===(s=i[this.filter])||void 0===s?void 0:s.showMore});this.$router.push(this.sectionUrl).catch(()=>({})),this.$bus.emit("open-game-section")}},customIntersectionHandler(e){this.isMobile?this.isVisible=!0:this.intersectionHandler(e)}})},f=b,w=(i("71bec"),i("2877")),S=Object(w["a"])(f,s,a,!1,null,null,null);t["a"]=S.exports},"41f9":function(e,t,i){"use strict";i("1b64")},"48b3":function(e,t,i){"use strict";i.d(t,"m",(function(){return s})),i.d(t,"p",(function(){return a})),i.d(t,"b",(function(){return r})),i.d(t,"h",(function(){return n})),i.d(t,"c",(function(){return l})),i.d(t,"d",(function(){return o})),i.d(t,"a",(function(){return d})),i.d(t,"n",(function(){return c})),i.d(t,"e",(function(){return m})),i.d(t,"f",(function(){return u})),i.d(t,"q",(function(){return h})),i.d(t,"o",(function(){return p})),i.d(t,"j",(function(){return g})),i.d(t,"l",(function(){return v})),i.d(t,"i",(function(){return b})),i.d(t,"k",(function(){return f})),i.d(t,"g",(function(){return w}));const s=[{direction:"prev",icon:"arrow-left"},{direction:"next",icon:"arrow-right"}],a="event-tournament",r="event-promotion",n="providers-list",l=10,o=5,d=20,c=12,m=8,u=8,h=2,p=3,g=1,v=2,b=3,f=4,w=1},"629d":function(e,t,i){"use strict";var s=function(){var e=this,t=e._self._c;return t("div",{class:`swiper-button-${e.button.direction}-wr swiper-${e.navigateId}-${e.button.direction}`},[t("div",{class:"swiper-button-"+e.button.direction},[t("icon",{staticClass:"games-slider__navigation-icon",attrs:{"icon-name":""+e.button.icon}})],1)])},a=[],r=i("5d2a"),n={name:"cards-slider-navigate",components:{Icon:r["a"]},props:{navigateId:{type:String,default:"id"},button:{type:Object,default:()=>({})}}},l=n,o=(i("41f9"),i("2877")),d=Object(o["a"])(l,s,a,!1,null,null,null);t["a"]=d.exports},"6e71":function(e,t,i){"use strict";i("c265")},"71bec":function(e,t,i){"use strict";i("88a4e")},"88a4e":function(e,t,i){},a137:function(e,t,i){"use strict";i.r(t);var s=i("5530"),a=(i("4de4"),function(){var e=this,t=e._self._c;return t("cards-slider",{ref:"cardsSliderTop",class:e.cardsSliderClasses,attrs:{filter:e.cardsSliderFilter,collection:e.collection,name:e.name,"collection-list":e.collectionList,"navigate-id":e.navigateId,row:e.row,title:e.titleCustom,"right-navigate-hide":e.rightNavigateHide,"rtp-options":e.rtpOptions,"skeleton-props":e.skeletonProps,"gtm-element":e.gtmElement,"card-size":e.cardSize,"is-show-all-btn-visible":e.isShowAllBtnVisible,"section-url":e.sectionUrlWithFilter},scopedSlots:e._u([e.isVisiblePromoGameBottom?{key:"bottom",fn:function(){return[t("games-list-card-video",{attrs:{game:e.gameInVideo,"gtm-element":e.gtmElement}})]},proxy:!0}:null],null,!0)},[e.isVisiblePromoGameInSlider?t("games-list-card-video",{attrs:{game:e.gameInVideo,"gtm-element":e.gtmElement}}):e._e(),e.rtpOptions?e._l(e.computedSliderCollection,(function(i,a){return t("games-list-rtp",{key:i.id,staticClass:"swiper-slide",attrs:{"data-game-id":e.getGameIdInSection(i.id,e.navigateId),game:i,filter:e.filter,"is-hovered-game":e.hoveredGameId===e.getGameIdInSection(i.id,e.navigateId),position:a,"rtp-options":i.rtp?Object(s["a"])(Object(s["a"])({},i.rtp),{},{mode:e.rtpOptions.mode}):null,"gtm-element":e.gtmElement,collection:e.collection,"cards-slider-filter":e.cardsSliderFilter,"hide-badges":e.hideBadges,"show-bottom-label":e.showBottomLabel}})})):e._l(e.computedSliderCollection,(function(i,a){return t("games-list-card",{key:i.id,staticClass:"swiper-slide",attrs:{"data-game-id":i.domId,game:i,filter:e.filter,"is-hovered-game":e.hoveredGameId===i.domId,position:a,"rtp-options":i.rtp?Object(s["a"])(Object(s["a"])({},i.rtp),{},{mode:e.rtpOptions.mode}):null,"gtm-element":e.gtmElement,collection:e.collection,"cards-slider-filter":e.cardsSliderFilter,"is-last-show-all":e.isShowLastCard&&a===e.computedSliderCollection.length-1,"hide-badges":e.hideBadges,"card-size":e.cardSize,"show-bottom-label":e.showBottomLabel},on:{"handle-click-last-show-all":e.handleClickLastShowAll}})}))],2)}),r=[],n=(i("caad"),i("d81d"),i("14d9"),i("fb6a"),i("2532"),i("ca47")),l=i("3332"),o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"games-list-rtp",on:{click:e.handleClick}},[t("games-list-card",{attrs:{"data-game-id":e.dataGameId,game:e.game,filter:e.filter,position:e.position,"rtp-options":e.rtpOptions,"gtm-element":e.gtmElement,collection:e.collection,"cards-slider-filter":e.cardsSliderFilter,"hide-badges":e.hideBadges,"show-bottom-label":!1}}),t("div",{staticClass:"games-list-rtp__content"},[t("div",{staticClass:"games-list-rtp__content-inner"},[t("div",{staticClass:"games-list-rtp__content-title"},[e._v(" "+e._s(e.game.title)+" ")]),t("div",{staticClass:"games-list-rtp__content-provider"},[e._v(" "+e._s(e.gameProviderName)+" ")])]),t("div",{staticClass:"games-list-rtp__content-value"},[e._m(0),t("div",{staticClass:"games-list-rtp__content-value-text"},[e._v(" RTP: "),t("span",{domProps:{innerHTML:e._s(e.rtpValue)}})])])]),t("div",{staticClass:"games-list-rtp__blink"}),t("div",{staticClass:"games-list-rtp__fire"})],1)},d=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"games-list-rtp__content-value-icon-wrap"},[t("img",{staticClass:"games-list-rtp__content-value-icon",attrs:{src:"/img/svg/fire.svg",alt:"rtp"}})])}],c=i("5005"),m=i("60e8"),u=i("5e92"),h=i("9bd3"),p=i("d226"),g=i("1fa8"),v={name:"games-list-rtp",components:{GamesListCard:h["default"]},mixins:[c["a"],m["a"],u["a"]],props:{dataGameId:{type:String,default:""},game:{type:Object,default:()=>({})},filter:{type:String,default:""},rtpOptions:{type:Object,required:!1,default:()=>{}},position:{type:Number,default:0},gtmElement:{type:Object,default:()=>({})},collection:{type:String,default:""},cardsSliderFilter:{type:String,default:""},hideBadges:{type:Boolean,default:!1}},computed:Object(s["a"])(Object(s["a"])({},Object(n["e"])("breakpoints",["isMobileOrTablet"])),{},{rtpValue(){return Object(g["a"])(this.rtpOptions.value)}}),methods:{handleClick(e){var t;const i=null===(t=this.gtmElement)||void 0===t?void 0:t.game,s=Object(p["b"])({cardInternalElement:e.target,cardWrapperSelector:".games-list-rtp"}),a=s.position,r=s.line;if(!this.isMobileOrTablet){const e=Object(p["c"])({game:this.game,gtmElement:this.gtmElement,position:a,line:r,isMobile:!1});this.$analytics.logEvent(e)}this.openGame(this.game,{place:i,position:a,line:r})}}},b=v,f=(i("6e71"),i("2877")),w=Object(f["a"])(b,o,d,!1,null,null,null),S=w.exports,_=function(){var e=this,t=e._self._c;return t("div",{ref:"cardsVideo",staticClass:"games-cards-video swiper-slide",on:{click:function(t){return t.preventDefault(),t.stopPropagation(),e.handleClick.apply(null,arguments)}}},[t("video",{key:e.gameVideoUrl,staticClass:"games-cards-video-item",attrs:{playsinline:"",autoplay:"",loop:"",muted:""},domProps:{muted:!0}},[t("source",{attrs:{src:e.gameVideoUrl,type:"video/mp4"}})]),t("div",{staticClass:"games-cards-video__content"},[t("div",{staticClass:"games-cards-video__content-img"},[t("img",{staticClass:"games-cards-video__content-image",attrs:{src:e.gameImage,alt:e.game.title}}),t("icon",{staticClass:"games-cards-video__content-play",attrs:{"icon-name":"play-44"}})],1),t("div",{staticClass:"games-cards-video__content-inner"},[t("div",{staticClass:"games-cards-video__content-name"},[e._v(" "+e._s(e.game.title)+" ")]),t("div",{staticClass:"games-cards-video__content-provider"},[e._v(" "+e._s(e.gameProviderName)+" ")]),t("div",{staticClass:"games-cards-video__content-icon"},[t("icon",{staticClass:"games-cards-video__content-icon-item",attrs:{"icon-name":"chevrone-right"}})],1)])])])},C=[],I=i("1da1"),O=i("a174"),y=i("5d2a"),E=i("8f12"),j={name:"games-list-card-video",components:{Icon:y["a"]},mixins:[O["a"],c["a"],u["a"]],props:{game:{type:Object,default:()=>({})},gtmElement:{type:Object,default:()=>({})}},computed:Object(s["a"])(Object(s["a"])(Object(s["a"])({},Object(n["e"])("games",["getGamePicture"])),Object(n["e"])("breakpoints",["isMobileOrTablet"])),{},{gameImage(){return this.getGamePicture(this.game,E["Ib"])},gameVideoUrl(){return`/upload/${this.game.identifier.toLowerCase()}.mp4`}}),watch:{gameImage(e,t){this.setGameBg(t)}},mounted(){this.setGameBg(this.gameImage)},methods:{setGameBg(e){var t=this;return Object(I["a"])((function*(){const i=yield t.getAverageRGB(e);i&&t.setBgStyles("--game-bg",i,"cardsVideo")}))()},handleClick(){var e;const t=1,i=1,s=(null===(e=this.gtmElement)||void 0===e?void 0:e.game)||"";this.openGame(this.game,{line:t,position:i,place:s})}}},L=j,M=(i("be4b"),Object(f["a"])(L,_,C,!1,null,null,null)),k=M.exports,B=i("793d");const V=1,G=3;var T={name:"games-cards-slider",components:{GamesListRtp:S,GamesListCard:h["default"],GamesListCardVideo:k,CardsSlider:l["a"]},mixins:[B["a"]],props:{title:{type:String,required:!0},row:{type:Number,default:V},navigateId:{type:String,required:!0},collectionList:{type:Array,required:!0},rightNavigateHide:{type:Boolean,default:!1},hoveredGameId:{type:String,default:""},filter:{type:String,default:""},cardsSliderFilter:{type:String,default:""},collection:{type:String,default:""},name:{type:String,default:""},rtpOptions:{type:[Object,void 0],default:void 0},skeletonProps:{type:Object,default:null},gtmElement:{type:Object,default:()=>({})},cardSize:{type:String,validator(e){return["xs","s","m","l"].includes(e)},default:""},sectionUrl:{type:String,default:""},hideShowAll:{type:Boolean,default:!1},isLastCardShowAll:{type:Boolean,default:!1},provider:{type:String,default:""},hideBadges:{type:Boolean,default:!1},collectionName:{type:String,default:""},showBottomLabel:{type:Boolean,default:!0},cardVideoIdentifier:{type:String,default:""}},computed:Object(s["a"])(Object(s["a"])({},Object(n["e"])("breakpoints",["isMobile"])),{},{cardsSliderClasses(){return["games-slider-wrap--"+this.navigateId,{"games-slider-wrap--promo-game":this.gameInVideo}]},isVisiblePromoGameInSlider(){return this.gameInVideo&&!this.isMobile},isVisiblePromoGameBottom(){return this.gameInVideo&&this.isMobile},titleCustom(){return"section-live_dealers"===this.navigateId?"live_dealers_slider_head":this.title},computedSliderCollection(){const e=this.filteredCollectionList.slice(0,this.quantityGamesInSlider);if(this.isShowLastCard){const t=e[e.length-1];e.push(Object(s["a"])(Object(s["a"])({},t),{},{id:t.id+"_last",domId:t.domId+"_last"}))}return e},isCollectionPopular(){return this.collectionName===E["jc"].POPULAR},isCollectionRecommended(){return this.name===E["Sc"].HOME_RECOMMENDED},quantityGamesInSlider(){return this.isCollectionRecommended?E["mc"].RECOMMENDED:this.row===G?E["mc"].THREE_ROW:this.isMobile&&this.rtpOptions?E["mc"].MOBILE_RTP:this.isMobile?E["mc"].MOBILE:this.row===V?E["mc"].SINGLE_ROW:this.isCollectionPopular||this.isCollectionRecommended?E["mc"].MULTI_ROW+1:E["mc"].MULTI_ROW},isShowAllBtnVisible(){var e;return!this.hideShowAll&&(!(![E["jc"].LIVE,E["jc"].TABLE].includes(this.collection)&&![E["oc"].LIVE_DEALERS,E["oc"].FAVORITES].includes(this.navigateId))||(null===(e=this.gamesWithDomId)||void 0===e?void 0:e.length)>this.quantityGamesInSlider)},isShowLastCard(){return this.isLastCardShowAll&&this.collectionList.length>this.quantityGamesInSlider},gamesWithDomId(){return this.collectionList.map(e=>Object(s["a"])(Object(s["a"])({},e),{},{domId:this.getGameIdInSection(e.id,this.navigateId)}))},sectionUrlWithFilter(){let e=this.sectionUrl;return this.provider&&(e+="?provider="+this.provider),e},gameInVideo(){return this.gamesWithDomId.find(({identifier:e})=>e===this.cardVideoIdentifier)},filteredCollectionList(){return this.gameInVideo?this.gamesWithDomId.filter(({identifier:e})=>e!==this.cardVideoIdentifier):this.gamesWithDomId}}),methods:{handleClickLastShowAll(){var e,t,i,s;this.$router.push(this.sectionUrlWithFilter).catch(()=>({})),this.$bus.emit("open-game-section"),this.$analytics.clickEvent({button:null!==(e=this.gtmElement)&&void 0!==e&&e.showMore?this.gtmElement.showMore:null===(t=this.GTM_ELEMENTS.filter.filtersCategories)||void 0===t||null===(i=t[this.collection])||void 0===i||null===(s=i[this.filter])||void 0===s?void 0:s.showMore})}}},P=T,R=Object(f["a"])(P,a,r,!1,null,null,null);t["default"]=R.exports},a174:function(e,t,i){"use strict";var s=i("1da1");t["a"]={methods:{setBgStyles(e,t,i){var s;null===(s=this.$refs[i])||void 0===s||s.style.setProperty(e,t)},getAverageRGB(e){return Object(s["a"])((function*(){if(!e)return;const t=[0,0,0],i=document.createElement("canvas"),s=i.getContext&&i.getContext("2d");if(!s)return t;const a=new Image,r=5;let n,l=-4;const o=[0,0,0];let d=0;a.src=e,a.width=100,a.height=100,yield a.decode();const c=i.height=a.naturalHeight||a.offsetHeight||a.height,m=i.width=a.naturalWidth||a.offsetWidth||a.width;s.drawImage(a,0,0);try{n=s.getImageData(0,0,m,c)}catch(h){return t}const u=n.data.length;while((l+=4*r)